Optimal. Leaf size=257 \[ -\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}-\frac {5 b (7 b B d-4 A b e-3 a B e) \sqrt {a+b x} \sqrt {d+e x}}{4 e^4}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}+\frac {5 \sqrt {b} (b d-a e) (7 b B d-4 A b e-3 a B e) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{4 e^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 257, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {79, 49, 52, 65,
223, 212} \begin {gather*} \frac {5 \sqrt {b} (b d-a e) (-3 a B e-4 A b e+7 b B d) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{4 e^{9/2}}-\frac {5 b \sqrt {a+b x} \sqrt {d+e x} (-3 a B e-4 A b e+7 b B d)}{4 e^4}+\frac {5 b (a+b x)^{3/2} \sqrt {d+e x} (-3 a B e-4 A b e+7 b B d)}{6 e^3 (b d-a e)}-\frac {2 (a+b x)^{5/2} (-3 a B e-4 A b e+7 b B d)}{3 e^2 \sqrt {d+e x} (b d-a e)}-\frac {2 (a+b x)^{7/2} (B d-A e)}{3 e (d+e x)^{3/2} (b d-a e)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 49
Rule 52
Rule 65
Rule 79
Rule 212
Rule 223
Rubi steps
\begin {align*} \int \frac {(a+b x)^{5/2} (A+B x)}{(d+e x)^{5/2}} \, dx &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}+\frac {(7 b B d-4 A b e-3 a B e) \int \frac {(a+b x)^{5/2}}{(d+e x)^{3/2}} \, dx}{3 e (b d-a e)}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}+\frac {(5 b (7 b B d-4 A b e-3 a B e)) \int \frac {(a+b x)^{3/2}}{\sqrt {d+e x}} \, dx}{3 e^2 (b d-a e)}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}-\frac {(5 b (7 b B d-4 A b e-3 a B e)) \int \frac {\sqrt {a+b x}}{\sqrt {d+e x}} \, dx}{4 e^3}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}-\frac {5 b (7 b B d-4 A b e-3 a B e) \sqrt {a+b x} \sqrt {d+e x}}{4 e^4}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}+\frac {(5 b (b d-a e) (7 b B d-4 A b e-3 a B e)) \int \frac {1}{\sqrt {a+b x} \sqrt {d+e x}} \, dx}{8 e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}-\frac {5 b (7 b B d-4 A b e-3 a B e) \sqrt {a+b x} \sqrt {d+e x}}{4 e^4}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}+\frac {(5 (b d-a e) (7 b B d-4 A b e-3 a B e)) \text {Subst}\left (\int \frac {1}{\sqrt {d-\frac {a e}{b}+\frac {e x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{4 e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}-\frac {5 b (7 b B d-4 A b e-3 a B e) \sqrt {a+b x} \sqrt {d+e x}}{4 e^4}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}+\frac {(5 (b d-a e) (7 b B d-4 A b e-3 a B e)) \text {Subst}\left (\int \frac {1}{1-\frac {e x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {d+e x}}\right )}{4 e^4}\\ &=-\frac {2 (B d-A e) (a+b x)^{7/2}}{3 e (b d-a e) (d+e x)^{3/2}}-\frac {2 (7 b B d-4 A b e-3 a B e) (a+b x)^{5/2}}{3 e^2 (b d-a e) \sqrt {d+e x}}-\frac {5 b (7 b B d-4 A b e-3 a B e) \sqrt {a+b x} \sqrt {d+e x}}{4 e^4}+\frac {5 b (7 b B d-4 A b e-3 a B e) (a+b x)^{3/2} \sqrt {d+e x}}{6 e^3 (b d-a e)}+\frac {5 \sqrt {b} (b d-a e) (7 b B d-4 A b e-3 a B e) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{4 e^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.32, size = 215, normalized size = 0.84 \begin {gather*} \frac {-\frac {\sqrt {a+b x} \left (8 a^2 e^2 (2 B d+A e+3 B e x)+a b e \left (8 A e (5 d+7 e x)-B \left (115 d^2+158 d e x+27 e^2 x^2\right )\right )+b^2 \left (-4 A e \left (15 d^2+20 d e x+3 e^2 x^2\right )+B \left (105 d^3+140 d^2 e x+21 d e^2 x^2-6 e^3 x^3\right )\right )\right )}{(d+e x)^{3/2}}+15 \sqrt {\frac {b}{e}} (b d-a e) (-7 b B d+4 A b e+3 a B e) \log \left (\sqrt {a+b x}-\sqrt {\frac {b}{e}} \sqrt {d+e x}\right )}{12 e^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1249\) vs.
\(2(219)=438\).
time = 0.09, size = 1250, normalized size = 4.86
method | result | size |
default | \(\text {Expression too large to display}\) | \(1250\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.75, size = 822, normalized size = 3.20 \begin {gather*} \left [\frac {15 \, {\left (7 \, B b^{2} d^{4} + {\left (3 \, B a^{2} + 4 \, A a b\right )} x^{2} e^{4} - 2 \, {\left ({\left (5 \, B a b + 2 \, A b^{2}\right )} d x^{2} - {\left (3 \, B a^{2} + 4 \, A a b\right )} d x\right )} e^{3} + {\left (7 \, B b^{2} d^{2} x^{2} - 4 \, {\left (5 \, B a b + 2 \, A b^{2}\right )} d^{2} x + {\left (3 \, B a^{2} + 4 \, A a b\right )} d^{2}\right )} e^{2} + 2 \, {\left (7 \, B b^{2} d^{3} x - {\left (5 \, B a b + 2 \, A b^{2}\right )} d^{3}\right )} e\right )} \sqrt {b} e^{\left (-\frac {1}{2}\right )} \log \left (b^{2} d^{2} + 4 \, {\left (b d e + {\left (2 \, b x + a\right )} e^{2}\right )} \sqrt {b x + a} \sqrt {x e + d} \sqrt {b} e^{\left (-\frac {1}{2}\right )} + {\left (8 \, b^{2} x^{2} + 8 \, a b x + a^{2}\right )} e^{2} + 2 \, {\left (4 \, b^{2} d x + 3 \, a b d\right )} e\right ) - 4 \, {\left (105 \, B b^{2} d^{3} - {\left (6 \, B b^{2} x^{3} - 8 \, A a^{2} + 3 \, {\left (9 \, B a b + 4 \, A b^{2}\right )} x^{2} - 8 \, {\left (3 \, B a^{2} + 7 \, A a b\right )} x\right )} e^{3} + {\left (21 \, B b^{2} d x^{2} - 2 \, {\left (79 \, B a b + 40 \, A b^{2}\right )} d x + 8 \, {\left (2 \, B a^{2} + 5 \, A a b\right )} d\right )} e^{2} + 5 \, {\left (28 \, B b^{2} d^{2} x - {\left (23 \, B a b + 12 \, A b^{2}\right )} d^{2}\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d}}{48 \, {\left (x^{2} e^{6} + 2 \, d x e^{5} + d^{2} e^{4}\right )}}, -\frac {15 \, {\left (7 \, B b^{2} d^{4} + {\left (3 \, B a^{2} + 4 \, A a b\right )} x^{2} e^{4} - 2 \, {\left ({\left (5 \, B a b + 2 \, A b^{2}\right )} d x^{2} - {\left (3 \, B a^{2} + 4 \, A a b\right )} d x\right )} e^{3} + {\left (7 \, B b^{2} d^{2} x^{2} - 4 \, {\left (5 \, B a b + 2 \, A b^{2}\right )} d^{2} x + {\left (3 \, B a^{2} + 4 \, A a b\right )} d^{2}\right )} e^{2} + 2 \, {\left (7 \, B b^{2} d^{3} x - {\left (5 \, B a b + 2 \, A b^{2}\right )} d^{3}\right )} e\right )} \sqrt {-b e^{\left (-1\right )}} \arctan \left (\frac {{\left (b d + {\left (2 \, b x + a\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d} \sqrt {-b e^{\left (-1\right )}}}{2 \, {\left (b^{2} d x + a b d + {\left (b^{2} x^{2} + a b x\right )} e\right )}}\right ) + 2 \, {\left (105 \, B b^{2} d^{3} - {\left (6 \, B b^{2} x^{3} - 8 \, A a^{2} + 3 \, {\left (9 \, B a b + 4 \, A b^{2}\right )} x^{2} - 8 \, {\left (3 \, B a^{2} + 7 \, A a b\right )} x\right )} e^{3} + {\left (21 \, B b^{2} d x^{2} - 2 \, {\left (79 \, B a b + 40 \, A b^{2}\right )} d x + 8 \, {\left (2 \, B a^{2} + 5 \, A a b\right )} d\right )} e^{2} + 5 \, {\left (28 \, B b^{2} d^{2} x - {\left (23 \, B a b + 12 \, A b^{2}\right )} d^{2}\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d}}{24 \, {\left (x^{2} e^{6} + 2 \, d x e^{5} + d^{2} e^{4}\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 534 vs.
\(2 (231) = 462\).
time = 1.96, size = 534, normalized size = 2.08 \begin {gather*} -\frac {5 \, {\left (7 \, B b^{2} d^{2} {\left | b \right |} - 10 \, B a b d {\left | b \right |} e - 4 \, A b^{2} d {\left | b \right |} e + 3 \, B a^{2} {\left | b \right |} e^{2} + 4 \, A a b {\left | b \right |} e^{2}\right )} e^{\left (-\frac {9}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right )}{4 \, \sqrt {b}} + \frac {{\left ({\left (3 \, {\left (b x + a\right )} {\left (\frac {2 \, {\left (B b^{5} d {\left | b \right |} e^{6} - B a b^{4} {\left | b \right |} e^{7}\right )} {\left (b x + a\right )}}{b^{4} d e^{7} - a b^{3} e^{8}} - \frac {7 \, B b^{6} d^{2} {\left | b \right |} e^{5} - 10 \, B a b^{5} d {\left | b \right |} e^{6} - 4 \, A b^{6} d {\left | b \right |} e^{6} + 3 \, B a^{2} b^{4} {\left | b \right |} e^{7} + 4 \, A a b^{5} {\left | b \right |} e^{7}}{b^{4} d e^{7} - a b^{3} e^{8}}\right )} - \frac {20 \, {\left (7 \, B b^{7} d^{3} {\left | b \right |} e^{4} - 17 \, B a b^{6} d^{2} {\left | b \right |} e^{5} - 4 \, A b^{7} d^{2} {\left | b \right |} e^{5} + 13 \, B a^{2} b^{5} d {\left | b \right |} e^{6} + 8 \, A a b^{6} d {\left | b \right |} e^{6} - 3 \, B a^{3} b^{4} {\left | b \right |} e^{7} - 4 \, A a^{2} b^{5} {\left | b \right |} e^{7}\right )}}{b^{4} d e^{7} - a b^{3} e^{8}}\right )} {\left (b x + a\right )} - \frac {15 \, {\left (7 \, B b^{8} d^{4} {\left | b \right |} e^{3} - 24 \, B a b^{7} d^{3} {\left | b \right |} e^{4} - 4 \, A b^{8} d^{3} {\left | b \right |} e^{4} + 30 \, B a^{2} b^{6} d^{2} {\left | b \right |} e^{5} + 12 \, A a b^{7} d^{2} {\left | b \right |} e^{5} - 16 \, B a^{3} b^{5} d {\left | b \right |} e^{6} - 12 \, A a^{2} b^{6} d {\left | b \right |} e^{6} + 3 \, B a^{4} b^{4} {\left | b \right |} e^{7} + 4 \, A a^{3} b^{5} {\left | b \right |} e^{7}\right )}}{b^{4} d e^{7} - a b^{3} e^{8}}\right )} \sqrt {b x + a}}{12 \, {\left (b^{2} d + {\left (b x + a\right )} b e - a b e\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^{5/2}}{{\left (d+e\,x\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________